#!/bin/sh

echo Before readd
lsscsi

for item in `ls /sys/class/scsi_host/`
do
	echo "echo \"- - -\" > /sys/class/scsi_host/$item/scan"
	echo "- - -" > /sys/class/scsi_host/$item/scan
done

echo After readd
sleep 1
lsscsi

